package com.menu.Pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {

    @ApiModelProperty(value = "商品Id")
    private Integer goodsId;
    @ApiModelProperty(value = "商品价格")
    private String goodsPrice;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "商品描述")
    private String goodsDecription;
    @ApiModelProperty(value = "商品封面图,修改时必须带上")
    private String goodsSurfaceimg;
    @ApiModelProperty(value = "商品库存")
    private Integer goodsStore;
    @ApiModelProperty(value = "商品限购")
    private Integer goodsLimit;
    @ApiModelProperty(value = "商品分类")
    private String goodsClassify;
    @ApiModelProperty(value = "商品月销量",hidden = true)
    private Integer goodsSales = 0;
    @ApiModelProperty(value = "商品状态 0 上架 1下架 2删除")
    private Integer state = 0;
    @JsonIgnore
    @ApiModelProperty(value = "商品价格整数",hidden = true)
    private Integer goodsPriceInt;
    @JsonIgnore
    @ApiModelProperty(value = "商品价格小数",hidden = true)
    private Integer goodsPriceDec;
}
